package cn.tedu.shoot;

import java.awt.image.BufferedImage;

public class Sky extends FlyingObject{
    int speed;
    int y1;
    public Sky(){
        super(400,700,0,0);
        speed = 1;
        y1 = -700;
    }

    public void step(){
        y+=speed;
        y1+=speed;
        if(y>=700){
            y=-700;
        }
        if(y1>700){
            y=-700;
        }
    }

    public BufferedImage getImage(){
        return Images.sky;
    }

    public int  getY1(){
        return y1;
    }


}
